package com.sslpay.merchant.convert;

import com.sslpay.merchant.api.dto.AppDTO;
import com.sslpay.merchant.entity.App;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 描述：
 *
 * @author ssl
 * @create 2020/05/11 15:32
 */
@Mapper
public interface AppConvert {
    AppConvert INSTANCE = Mappers.getMapper(AppConvert.class);

    AppDTO entityToDto(App app);

    App dtoToEntity(AppDTO appDTO);

    List<AppDTO> entityToDto(List<App> apps);
}
